<?xml version='1.0' encoding='UTF-8' ?> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
                      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition  xmlns="http://www.w3.org/1999/xhtml"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:a4j="http://richfaces.org/a4j"
    xmlns:rich="http://richfaces.org/rich"
    template="/pages/template.xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>    
<ui:define name="content">
<f:view>
	<h:form> 
		<h:messages/>
		<rich:spacer height="22px" width="100%"/>
		<span style="margin-left: 20px">
		<h:panelGrid columns="1" width="99%" styleClass="cabecalhoUC">
		  <h:outputLabel value="Dados Cadastrais"/>
		</h:panelGrid> 
		</span>
		<rich:spacer height="22px" width="100%"/>
       
 
 				<h:panelGrid columns="4" width="100%" columnClasses="colunasLabel, colunasInput, colunasLabel, colunasInput" >

			    	<h:outputLabel for="nmRazaoSocial" value="Razão Social:"/>
					<h:inputText styleClass="campoStyle1" id="nmRazaoSocial" value="#{mercadoMB.mercadoTO.razaoSocial}" style=" width:300px; text-align:rigth;" />
					<h:outputLabel for="nmFantasia" value="Nome Fantasia:" />
					<h:inputText styleClass="campoStyle1" id="nmFantasia" value="#{mercadoMB.mercadoTO.nomeFantasia}" style=" width : 300px;" />
					<h:outputLabel for="nuCGC" value="CGC:"/>
					<h:inputText styleClass="campoStyle1" id="nuCGC" value="#{mercadoMB.mercadoTO.cgc}" style=" width:110px;" />
					<h:outputLabel for="nuIE" value="Inscrição Estadual:" />
					<h:inputText styleClass="campoStyle1" id="nuIE" value="#{mercadoMB.mercadoTO.ie}" style=" width : 100px;" />
					<h:outputLabel for="dsTelefone" value="Telefone:" />
					<h:inputText styleClass="campoStyle1" id="dsTelefone" value="#{mercadoMB.mercadoTO.telefone}" style=" width : 100px;" />
			    	<h:outputLabel for="dsEndereco" value="Endereço:"/>
					<h:inputText styleClass="campoStyle1" id="dsEndereco" value="#{mercadoMB.mercadoTO.endereco}" style=" width : 300px;" />
        	    	<h:outputLabel for="dsCEP" value="CEP:" />
					<h:inputText styleClass="campoStyle1" id="dsCEP" value="#{mercadoMB.mercadoTO.cep}" style=" width : 100px;" />
					<h:outputLabel for="nmCidade" value="Cidade:" />
					<h:inputText styleClass="campoStyle1" id="nmCidade" value="#{mercadoMB.mercadoTO.cidade}" style=" width : 200px;" />
			    	<h:outputLabel for="dsContato" value="Contato:"/>
					<h:inputText styleClass="campoStyle1" id="dsContato" value="#{mercadoMB.mercadoTO.contato}" style=" width:200px;" />
       			
       			</h:panelGrid>
	   

	    <h:panelGrid columns="1" width="99%" styleClass="cabecalhoUC">
		  <h:outputLabel value="Formas de Pagamento"/>
		</h:panelGrid>			

		<table cellspacing="20px">
			<tr>
				<td>
					<h:outputLabel for="dsAceitaChequeAv" value="Aceita Cheque a Vista ?:" />
					<h:selectOneRadio>
						<f:selectItem id="simCheque" ItemLabel="0" itemValue="Sim" />
						<f:selectItem id="naoCheque" ItemLabel="1" itemValue="Não" />
					</h:selectOneRadio>
				</td>
				<td>
				<h:outputLabel for="dsAceitaChequePre" value="Aceita Cheque Predatado ?:" />
					<h:selectOneRadio>	
						<f:selectItem id="simChequePre" ItemLabel="O" itemValue="Sim" />
						<f:selectItem id="naoChequePre" ItemLabel="1" itemValue="Não" />
        			</h:selectOneRadio>
        		</td>
        	</tr>
        </table>		
        	       	<table cellspacing="10px"  >
        		        	<tr>	
        		        	<td><h:graphicImage id="imageVisa" url="/images/cartao/icon_visa.gif" /></td>
        		        	<td><h:graphicImage id="imageVisaElectron" url="/images/cartao/icon_visa_electron.gif"/> </td>
        		        	<td><h:graphicImage id="imageAmericanEx" url="/images/cartao/icon_american_ex.gif"/></td>
        		        	<td><h:graphicImage id="imageDiners" url="/images/cartao/icon_diners.gif"/> </td>
        		        	<td><h:graphicImage id="imageHipercard" url="/images/cartao/icon_hipercard.gif"/> </td>
        		        	<td><h:graphicImage id="imageUnik" url="/images/cartao/icon_unik.gif"/> </td>

        		        	</tr>
        		        	<tr>
        		        	<td><h:selectBooleanCheckbox id="visa" value="false"/><h:outputText value="Visa"/></td>
        					<td><h:selectBooleanCheckbox id="visaElectron" value="false"/><h:outputText value="Visa Electron"/></td>
        		    		<td><h:selectBooleanCheckbox id="amercanEx" value="false" /><h:outputText value="American Express"/></td>
        					<td><h:selectBooleanCheckbox id="diners" value="false" /><h:outputText value="Diners"/></td>
        					<td><h:selectBooleanCheckbox id="hiperCard" value="false" /><h:outputText value="Hipercard"/></td>
         		    		<td><h:selectBooleanCheckbox id="unik" value="false" /><h:outputText value="Unik"/></td>
        					       					
        					</tr>
        					<tr>
        		     		<td><h:graphicImage id="imageMaetro" url="/images/cartao/icon_maestro.gif"/> </td>
        		     		<td><h:graphicImage id="imageSodexHo" url="/images/cartao/icon_sodexho.gif"/> </td>
        		     		<td><h:graphicImage id="imageRedeShop" url="/images/cartao/icon_redeshop.gif"/> </td>
        		     		<td><h:graphicImage id="imageVisaVale" url="/images/cartao/icon_visavale.gif"/> </td>
        		     		<td><h:graphicImage id="imageTicketAlim" url="/images/cartao/icon_ticketalim.gif"/> </td>
        		        	<td><h:graphicImage id="imageGoodCard" url="/images/cartao/icon_goodcard.gif"/> </td>
        		     		</tr>
        		     		<tr>
                            <td><h:selectBooleanCheckbox id="maestro" value="false" /><h:outputText value="Maestro"/></td>
         		    		<td><h:selectBooleanCheckbox id="sodexHo" value="false" /><h:outputText value="SodexHo"/></td>
        					<td><h:selectBooleanCheckbox id="redeShop" value="false" /><h:outputText value="RedeShop"/></td>
        					<td><h:selectBooleanCheckbox id="visaVale" value="false" /><h:outputText value="Visa Vale"/></td>    					
       				        <td><h:selectBooleanCheckbox id="ticketAlim" value="false" /><h:outputText value="Ticket Alim"/></td>
        					<td><h:selectBooleanCheckbox id="goodCard" value="false" /><h:outputText value="Goodcard"/></td>
       				      </tr>
       	  			</table>
       	  		
			<rich:spacer height="22px" width="99%"/>
			<span style="text-align: right;"/>
			
			<h:panelGroup styleClass="botoes">
				<h:commandButton value="Cancelar" action="#{mercadoMB.cancelar}"/>
				<h:commandButton value="Salvar" action="#{mercadoMB.salvar}"/>
    		</h:panelGroup>
    		    		
			 <a4j:region id="regiaoAjax">
			 	<a4j:status id="sts">
	            	<f:facet name="start">
	            		<h:graphicImage value="/images/ajax-loader.gif" />
	               	</f:facet>
	            </a4j:status>
	         </a4j:region>
	</h:form>
</f:view>
</ui:define>
</ui:composition >
